package top.timous.service;

import top.timous.pojo.ScoreEntity;
import top.timous.pojo.StudentEntity;
import top.timous.pojo.TeacherEntity;
import top.timous.vo.*;

import javax.print.attribute.standard.PagesPerMinute;
import java.util.List;

/**
 * @Author luming
 * @Date 2020/12/4 11:35
 */
public interface TeacherService {

    //登录
    TeacherEntity teacherLogin(TeacherEntity teacherEntity);
    //查询所有学生信息
    List<StudentEntity> queryAllStudentInfo(StudentInfos studentInfos);
    //查询学生总条数
    int queryAllStudentInfoCount(StudentInfos studentInfos);

    //添加学生信息
    int addStudentInfo(StudentEntity studentEntity);

    //修改学生信息
    void updateStudentInfoById(StudentEntity studentEntity);
    //删除学生信息
    void deleteStudentInfo(String id);

    //修改自己密码
    int updatePassword(TeacherEntity teacherEntity);

    //查看自己信息
    TeacherEntity queryOwnInfo(TeacherEntity teacherEntity);

    //根据学号查询学生成绩
    List<StudentbyPassword> queryStuScoreByStuId(StudentbyPassword studentbyPassword);

    String queryClassNameById(Integer classId);

    String queryHomeNameById(Integer homeId);

    Integer queryclassIdByclassName(String className);

    Integer queryhomeIdByhomeName(String homeName);

    List<TeacherCourse> queryclassInfo(String teaId);




    //批量删除学生信息
    void deleteStudentInfos(String[] ids);



    List<StudentScore> queryStudentScore(StudentScore studentScore);


    StudentEntity queryStuInfoByStuId(String stuId);

    void updateScore(StudentScore student);

    Integer queryCouIdByCouName(String couName);

    void addScore(ScoreEntity scoreEntity);

    String queryStuNameByStuId(String stuId);



    Integer queryCreditByCouName(String couName);

    int queryStudentScoreCount(StudentScore score);

    int queryAmount(Amount amount);

//    StudentEntity queryStuscoreByStuId(String stuId);
//
//    String queryCouNameByTeaId(String tId);
//
//    Integer queryStudentScoreByStuId(String stuId);


    //
}
